<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="buttons"></div>
    <script>
            let arr = new Array(1000000000);
            console.time();
            // for (let index = arr.length; index > 0; index--) {}
            // for (let index = 0; index < arr.length; index++) {}

            let l = arr.length;
            // while (l--) {}
            console.timeEnd();
    </script>
  </body>
</html>
